﻿using System.Linq;
using System.Windows;

namespace WordStat
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            if (Application.Current is App) 
                _fileContainer = (Application.Current as App).FileContainer;

            var dataSrv = new ArticleService();
            _treeGridControl.SetArticleService(dataSrv);
        }

        private FileContainer _fileContainer;

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
